package cate.common.table.activity.restrictcall.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.restrictcall.row.CallWayRow;

public class CallWaySheet extends ESheet<CallWayRow> {
    @Override
    public String getSheetName() {
        return "召唤方式";
    }

    public CallWayRow getRowByGroupAndTimes(int group, int times) {
        return getList().stream().filter(row -> row.group == group && row.callTimes == times).findAny().orElse(null);
    }
}
